package com.hk.dao.manage.sys.authority.model;

import com.hk.dao.manage.sys.authority.enums.PermsEnum;
import com.hk.dao.manage.sys.authority.enums.ResourceTypeEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysPermission)实体类
 *
 * @author cyq
 * @since 2020-04-20 13:38:55
 */
public class SysPermission implements Serializable {
    private static final long serialVersionUID = 723122811108075187L;
    /**
    * 主键
    */
    private Long id;
    /**
    * read:只读权限opt:可操作权限
    */
    private String perms;
    /**
    * 描述
    */
    private String description;
    /**
    * 1:目录，2:菜单，3:按钮
    */
    private ResourceTypeEnum type;
    /**
    * 接口url
    */
    private String url;
    /**
    * 资源key
    */
    private String resourceKey;
    /**
    * 资源url
    */
    private String resourceUrl;
    /**
    * 图标地址
    */
    private String icon;
    /**
    * 创建人id
    */
    private Long createId;
    /**
    * 创建人
    */
    private String createName;
    /**
    * 创建时间
    */
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getResourceKey() {
        return resourceKey;
    }

    public void setResourceKey(String resourceKey) {
        this.resourceKey = resourceKey;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public ResourceTypeEnum getType() {
        return type;
    }

    public void setType(ResourceTypeEnum type) {
        this.type = type;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }
}